import serve from "../index.js";

// 添加文章
export function addArticle(params) {
  return serve({
    method: "POST",
    // url: `/api/add_article?title=${title}&content=${content}&cate_name=${cate_name}&cate_id=${cate_id}&author=${author}&author_id=${author_id}&imageSrc=${imageSrc}`,
    url: `/api/add_article`,
    data: params,
  });
}
